package com.baichang.taoshunda.entity;

/**
 * Created by Administrator on 2017/8/23 0023.
 */
public enum  CityTag {
    是(1), 否(2);

    private Integer tagVersion;

    private CityTag(Integer tagVersion) {
        this.tagVersion = tagVersion;
    }

    public static CityTag valueOfTagVersion(int tagVersion) {
        CityTag[] states = CityTag.values();
        for (CityTag state : states) {
            if (state.getTagVersion() == tagVersion) {
                return state;
            }
        }
        return null;
    }

    public Integer getTagVersion() {
        return this.tagVersion;
    }

    @Override
    public String toString() {
        return String.valueOf(this.tagVersion);
    }



}
